export default [
  {
    path: "/:pathMatch(.*)",
    redirect: "/net"
  },
  {
    path: '/map',
    name: 'map',
    component: () => import('../views/HomeMap.vue'),
  },
  {
    path: '/net',
    name: 'net',
    component: () => import('../views/HomeNet.vue'),
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/HomeView.vue'),
    meta: { isAuth: true, title: '主页' },
    children: [
      {
        path: "over-view",
        name: "over-view",
        component: () => import("../views/home/OverView.vue"),
      },
      {
        path: "simple-dev",
        name: "simple-dev",
        component: () => import("../views/home/SimpleDev.vue"),
      },
      {
        path: "serve-side",
        name: "serve-side",
        component: () => import("../views/home/ServeSide.vue"),
      },
      {
        path: "camera-dev",
        name: "camera-dev",
        component: () => import("../views/home/CameraDev.vue"),
      },
      {
        path: "sms-setting",
        name: "sms-setting",
        component: () => import("../views/home/SmsSettings.vue"),
      },
      {
        path: "alarm-setting",
        name: "alarm-setting",
        component: () => import("../views/home/AlarmSettings.vue"),
      },
      {
        path: "system-setting",
        name: "system-setting",
        component: () => import("../views/home/SystemSetting.vue"),
      },
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
]